﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Cs2102BookingSystem.Models.BOOKING>" %>

<%  DateTime aWeek = System.DateTime.Now.AddDays(7);
    if (Model.STARTDATE > System.DateTime.Now && Model.ENDDATE > System.DateTime.Now) { 
    %>
     <%: Html.ActionLink("Edit", "EditBooking", new { id = Model.BOOKINGID })%> |
    <%
    }
    
    if (Model.STARTDATE > aWeek) { %>
    
     <%: Html.ActionLink("Delete", "DeleteReservation", new { id = Model.BOOKINGID })%> |
    
<%    }  %>

